package com.ds.context;

import com.ds.config.ResultModel;

public class WebErrorResultModel<T> extends ResultModel<T> {


    public int errcode;

    public String errdes;
    //

//    @JSONField(serialize = false)
//    @JsonIgnore
//    @Override
//    public T getData() throws JDSException {
//	throw new JDSException(errdes, errcode);
//    }

    public WebErrorResultModel() {
	super();
	this.errdes = "";
	this.errcode = 1000;
	this.requestStatus = -1;

    }

//    @JsonIgnore
//    @Override
//    @JSONField(serialize = false)
//    public T get() throws JDSException {
//	throw new JDSException(errdes, errcode);
//    }

    public int getErrcode() {
	return errcode;
    }

    public void setErrcode(int errcode) {
	this.errcode = errcode;
    }

    public String getErrdes() {
	return errdes;
    }

    public void setErrdes(String errdes) {
	this.errdes = errdes;
    }

}
